<h1>SciBase</h1>

<div class="section menu">
	<div>
		<a href="/">Home</a>
		<a href="/user/infobox">Account</a>
		<a href="/element/table">Database</a>
		<a href="/category/table">Categories</a>
		<a href="/unit/table">Units</a>
		<a href="/prop/table">Properties</a>
	</div>
</div>

<?php if (message::getAll()) { 
	html::messageBox(message::getAll());
} ?>

<?php
$doc = document::getInstance();
echo $doc->contents["main"];

$config = config::getInstance();
if ($config->debug) {
	$req = new request(array("module" => "debug", "action" => "vars"));
	module::loadToPosition($req, "debug", css::FLOAT_CLEAR); 
	
	echo $doc->contents["debug"];
}

?>